package sqlite

import "gitee.com/csingo/cDB/drivers"

const (
	Driver drivers.DBDriver = "sqlite"
)

type Connection struct {
	Driver drivers.DBDriver `json:"driver"`
	File   string           `json:"file"`
	Debug  bool             `json:"debug"`
}

func (i *Connection) GetDriver() drivers.DBDriver {
	return i.Driver
}

func (i *Connection) IsDebug() bool {
	return i.Debug
}

func (i *Connection) NewConnector(name string) (drivers.ConnectorInterface, error) {
	return NewSqliteConnector(name, i)
}
